package com.itheima.test.customer;

public class Desk {//桌子,判断汉堡包是否存在,以及定义共享数据
    //汉堡包数量,默认10个
    public static int HamburgerNumber = 10;
    //共用的Lock
    public static final Object lock = new Object();
    //汉堡包存在状态,默认不存在
    public static boolean flag = false;

    public static void main(String[] args) {
        Cooker c = new Cooker();
        Foodie f = new Foodie();

        c.start();
        f.start();
    }
}
